<include file="Public:header" /><section role="main" class="content-body">
    <header class="page-header"></header>
    <!-- start: page -->
    <section class="panel">
        <header class="panel-heading">
            <div class="row">
                <label class="col-md-2 control-label">从用户名</label>
                <div class="col-md-6">
                    <input class="form-control mb-md has-value" readonly="" value="{$home_user_info['username']}"></div>
            </div>
			<volist name="need_currency" id="vo">
            <div class="row">
                <label class="col-md-2 control-label">{$currency[$vo]['name']}：</label>
                <div class="col-md-6">
                    <input class="form-control mb-md has-value" readonly="" value="{$info[$vo]['num']}"></div>
            </div>
			</volist>
        </header>
    </section>
    <section class="panel">
        <div class="panel-body">
            <form class="form-horizontal form-bordered" id="form" autocomplete="off">
                <div class="form-group">
                    <label class="col-md-2 control-label" for="cname">转移总数</label>
                    <div class="col-md-6">
                        <input class="form-control" name="num" type="text" value=""></div>
                </div>
				<volist name="change_sys" id="vo">
                <div class="form-group">
                    <label class="col-md-2 control-label" for="cname">类型</label>
                    <div class="col-md-6">
                        <select class="form-control from" name="sys_id" readonly="">
                            <option value="{$vo['id']}">【{$currency[$vo['currency_id']]['name']}】转换至【{$currency[$vo['to_currency_id']]['name']}】</option></select>
                    </div>
                </div>
				</volist>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="color">备注</label>
                    <div class="col-md-6">
                        <input class="form-control" name="remark" type="text" placeholder="可选性" id="remark"></div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="color">二级密码</label>
                    <div class="col-md-6">
                        <input class="form-control" name="twopassword" maxlength="20" type="password" placeholder="请输入您的二级密码" id="transpwd" value=""></div>
                </div>
                <input type="hidden" name="page" value="own_register" class="has-value"></form>
        </div>
    </section>
    <footer class="panel-footer">
        <div class="row">
            <div class="col-sm-6 col-sm-offset-3">
                <button class="mb-xs mt-xs mr-xs btn btn-primary" type="button" onclick="sub()">提交</button>
                <a href="#" onclick="self.location=document.referrer;" id="position-4-error" class="mb-xs mt-xs mr-xs btn btn-default" type="reset">取消</a>
			</div>
        </div>
    </footer>
    <aside id="sidebar-right" class="sidebar-right">
        <div class="nano has-scrollbar">
            <div class="nano-content" tabindex="0" style="right: -17px;">
                <a href="#" class="mobile-close visible-xs">回到儀表板
                    <i class="fa fa-chevron-right"></i></a>
            </div>
            <div class="nano-pane" style="display: none; opacity: 1; visibility: visible;">
                <div class="nano-slider" style="height: 340px; transform: translate(0px, 0px);"></div>
            </div>
        </div>
    </aside>
	</section>
		<script>
			function sub(){
				$.ajax({
					 type: "POST",
					 url: "{:U('Money/changeMoneySub')}",
					 data: $("#form").serialize(),
					 dataType: "json",
					 error: function(request) {
						layer.closeAll('loading');
						layer.msg("{$Think.lang.系统繁忙请稍后再试}");
					},
					beforeSend: function() {
						var index = layer.load(1, {
						  shade: [0.1,'#fff'] 
						});
					},
					 success: function(data){
							layer.closeAll('loading');
							layer.msg(data['info']);
							if(data['status']==true){
								<!-- setTimeout(function(){self.location.href="{:U('Team/index')}"},1000); -->
							}
						}
				});
			};
		</script>
<include file="Public:footer" />